import request from '@/utils/request'

// 查询结算规则列表
export function listJsRules(query) {
  return request({
    url: '/business/jsRules/list',
    method: 'get',
    params: query
  })
}

// 查询结算规则详细
export function getJsRules(id) {
  return request({
    url: '/business/jsRules/' + id,
    method: 'get'
  })
}

// 新增结算规则
export function addJsRules(data) {
  return request({
    url: '/business/jsRules',
    method: 'post',
    data: data
  })
}

// 修改结算规则
export function updateJsRules(data) {
  return request({
    url: '/business/jsRules',
    method: 'put',
    data: data
  })
}

// 删除结算规则
export function delJsRules(id) {
  return request({
    url: '/business/jsRules/' + id,
    method: 'delete'
  })
}
